cmake_minimum_required(VERSION 3.9)
project(file_demo C)

set(CMAKE_C_STANDARD 11)

add_executable(file_demo main.c)
add_executable(server server.c)
add_executable(server1 server_1.c)
add_executable(fork_demo fork_demo.c)
add_executable(file_read_write file_read_write.c)
add_executable(zhizheng zhizheng.c)
add_executable(test_select test_select.c)
add_executable(test_epoll test_epoll.c)
add_executable(socketpair_test socketpair_test.c)
add_executable(filedesc_test filedesc_test.c)
add_executable(opentest opentest.c)
add_executable(main main.c)
add_executable(pipe pipe.c)
add_executable(fifo_server fifo_server.c)
add_executable(fifo_client fifo_client.c)
add_executable(udsfd udsfd.c)
add_executable(sendmsg_server sendmsg_server.c)
add_executable(sendmsg_clist sendmsg_clist.c)
add_executable(sendmsg_demo sendmsg_demo.c)
add_executable(server2 server2.c)
add_executable(client client.c)
